import Vue from 'vue'
import App from './App.vue'
import router from './router'
import axios from 'axios'
import VueAxios from 'vue-axios'
import './filters/index'

 

// 引入vant组件
import { Swipe, SwipeItem } from 'vant';
import { List } from 'vant';
import { Tabbar, TabbarItem } from 'vant';
import { Icon } from 'vant';
import { NavBar } from 'vant';
import { Form } from 'vant';
import { Field } from 'vant';
import { Button } from 'vant';
import { ShareSheet } from 'vant';
import { Cell } from 'vant';
import { Popup } from 'vant';
import { PullRefresh } from 'vant';





//注册axios, 这样就可以在组件里面使用
Vue.use(VueAxios, axios)
Vue.use(List);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(Icon);
Vue.use(NavBar);
Vue.use(Form);
Vue.use(Field);
Vue.use(Button);
Vue.use(ShareSheet);
Vue.use(Cell);
Vue.use(Popup);
Vue.use(PullRefresh);




Vue.config.productionTip = false

//导入flexible.js设置rem的基准值
import 'lib-flexible/flexible'


Vue.prototype.$EventBus = new Vue()




new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
